//
//  JCMessageListModel.h
//  Victor
//
//  Created by 郭吉成 on 2017/10/18.
//  Copyright © 2017年 coollang. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, MessageType) {
    MessageTypeLike,
    MessageTypeComment
};

@interface JCMessageListModel : NSObject

@property (nonatomic, strong) NSString *messageID;
@property (nonatomic, assign) MessageType messageType;
@property (nonatomic, strong) NSString *mainID;     //原帖子ID
@property (nonatomic, strong) NSString *childID;    //评论或者赞的ID；
@property (nonatomic, strong) NSString *userID;     //谁的消息
@property (nonatomic, assign) BOOL isDelete;        //是否已删除
@property (nonatomic, strong) NSString *creatTime;  //创建时间
@property (nonatomic, strong) NSArray *imageList;
@property (nonatomic, strong) NSString *text;
@property (nonatomic, strong) NSString *userName;
@property (nonatomic, strong) NSString *icon;

/**
 创建消息列表数据
 @param         sourceDic       数据源
 @return                        消息列表模型数组
 */
+ (NSArray<JCMessageListModel *> *)creatMessageListWithDictionnary:(NSDictionary *)sourceDic;

@end

